// ***********************系统管理*****************************************//

import { GlobalStore } from "@/store";

const globalStore = GlobalStore();
//图片上传

export const UPLOADIMG = '/uploadimg'


//header 图片上传
export const TOKENT_HEADER = {
    'Authorization': `Token ${globalStore.token}`
}


// 登录
export const LOGIN = '/admin/login'

export const LOGOUT = '/admin/logout'


// 操作日志
export const LOGSTYPE = '/admin/logs_type'

export const LOGS = '/admin/logs'

// 管理员列表

export const USER = '/admin/user'

//添加管理员
export const USERADD = '/admin/user/add'


//项目列表
export const PROJECTLIST = '/admin/project'

//操作办法列表
export const METHOD = '/admin/method'

// 权限列表
export const PERMISSION = '/admin/permission'


//编辑\删除权限
export const PERMISSIONDETAIL = '/admin/permission'

//所有权限菜单
export const PERMISSIONALL = '/admin/permission/all'

//权限组列表
export const GROUP = '/admin/group'

//查询组已选权限
export const GROUPPERMISSION = 'admin/group/permission'

//管理员权限查询
export const USERPERMISSION = 'admin/user/permission'

// 修改密码
export const PASSWORD = '/admin/password'